<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>float浮动效果</title>
		<style>
			.first {
				background-color: darkorange;
				width: 500px;
				height: 500px;
				float: left;
			}
			
			.sercond {
				background-color: greenyellow;
				width: 200px;
				height: 200px;
				float: left;
			}
			
			#first1 {
				background-color: darkorange;
				width: 500px;
				height: 500px;
				clear: left;
				display: inline-block;
			}
			
			#sercond1 {
				background-color: greenyellow;
				width: 200px;
				height: 200px;
				clear: left;
				display: inline-block;
			}
		</style>

	</head>

	<body>
		<div class="first">
			float
		</div>
		<div class="sercond">
			float
		</div>
		
		
		<hr />
		
		<div id="first1">
			display
		</div>
		<div id="sercond1">
			display
		</div>


	</body>

</html>